<!DOCTYPE html>
<html lang="pt-br">
	<?php

	require("../../_app/Config.inc.php");

	?>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $inserir = new Cadastrar;

        $dataCadastroFunc = filter_input_array(INPUT_POST, FILTER_DEFAULT);
        if(!empty($dataCadastroFunc['Cadastro'])):
            $inserir->CadastrarFunconario($dataCadastroFunc);
        endif;
        ?>
        
        <fieldset>
            <legend>-----  Cadastrar Funcionários  -----</legend>
            <form name="CadastroFuncForm" action="" method="POST">
                    <label>Nome:</label><br />
                    <input type="text" name="nome" /><br />

                    <label>E-mail</label><br />
                    <input type="text" name="email" /><br />

                    <label>CPF:</label><br />
                    <input type="text" name="cpf" /><br />

                    <label>RG:</label><br />
                    <input type="text" name="rg" /><br />

                    <label>CTPS</label><br />
                    <input type="text" name="ctps" /><br />

                    <label>Telefone</label><br />
                    <input type="text" name="telefone1" /><br />

                    <label>Celular</label><br />
                    <input type="text" name="telefone2" /><br />

                <input type="submit" name="Cadastro" value="Cadastrar" />

            </form>
        </fieldset>
    </body>
</html>
